.PHONY:all
all:
	@cd compile_server;\
	make;\
	cd -;\

	@cd oj_server ;\
	make;\
	cd -;\

.PHONY:output
output:
	@mkdir -p output/compile_server
	@mkdir -p output/oj_server
	@cp -rf compile_server/temp output/compile_server
	@cp -rf compile_server/compile_server output/compile_server
	@cp -rf oj_server/conf output/oj_server
	@cp -rf oj_server/questions output/oj_server
	@cp -rf oj_server/template output/oj_server
	@cp -rf oj_server/wwwroot output/oj_server
	@cp -rf oj_server/oj_server output/oj_server
	@tar -czvf output.tgz output

.PHONY:clean
clean:
	@rm -rf compile_server/compile_server
	@rm -rf oj_server/oj_server
	@rm -rf output
	@rm -rf *.tgz
